package org.qs.webservice.service;

import org.qs.webservice.domain.ConBook;
import org.qs.webservice.vo.Book;



/**
 * 书籍
 * @author xusaike
 * @date 2016年7月10日
 */
public interface BookService{
	/**
	 * 获取图书详情
	 * @param book_id
	 * @return
	 */
	public String getInfo(String book_id,String token);
	public Book setBookInfo(ConBook conBook);
	/**
	 * 分卷获取全部章节
	 * @param book_id
	 * @param pages
	 * @param contents
	 * @return
	 */
	public String getChapters(String book_id ,String order,String token,String device_identifier);
	/**
	 * 获取章节列表
	 * @param book_id
	 * @param pages
	 * @param contents
	 * @param order
	 * @return
	 */
	public String getChapterList(String book_id,int pages,int contents,String order,String token,String device_identifier);
	/**
	 * 获取正文
	 * @param book_id
	 * @param chappter_id
	 * @param token
	 * @return
	 * @throws Exception 
	 */
	public String updateChapterContent(int book_id,int chappter_id,String token,String device_identifier) throws Exception;
	/**
	 * 设置自动订购
	 * @param book_id
	 * @param status
	 * @param token
	 * @param device_identifier
	 * @return
	 */
	public String updateBookAuto(int book_id,int status,String token,String device_identifier);
	/**
	 * 
	 * @param book_id
	 * @param chapter_id
	 * @param token
	 * @param device_identifier
	 * @return
	 * @throws Exception 
	 */
	public String updateOrderPay(int chapter_id,String token,String device_identifier) throws Exception;
	/**
	 * 打赏作者
	 * @param book_id
	 * @param num
	 * @param token
	 * @param device_identifier
	 * @return
	 * @throws Exception 
	 */
	public String addRewardBook(int book_id,int num,String token,String device_identifier) throws Exception;
	public String getBookRewardList(int book_id,int pages,int contents);
	/**
	 * 赠送金票
	 * @param book_id
	 * @param num
	 * @param token
	 * @param device_identifier
	 * @return
	 * @throws Exception 
	 */
	public String updatePresentVotes(int book_id,int num,String token,String device_identifier) throws Exception;
}